package com.yq.admin01.service;

import com.yq.admin01.dao.EmpDao;
import com.yq.admin01.emtity.Emp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    EmpDao empDao;

    @Override
    public List<Emp> getAllEmps() {
        return empDao.findAll();
    }
}
